<template>
  <div>
    <el-dialog title="收货地址" :visible.sync="show">
      <el-form :model="form">
        <el-form-item label="单号" :label-width="formLabelWidth">
          <el-input v-model="form.order_num" autocomplete="off" clearable />
        </el-form-item>
        <el-form-item label="收货代理姓名" :label-width="formLabelWidth">
          <el-input v-model="form.anent_name" autocomplete="off" clearable />
        </el-form-item>
        <el-form-item label="收货代理电话" :label-width="formLabelWidth">
          <el-input v-model="form.anent_phone" autocomplete="off" clearable />
        </el-form-item>
        <el-form-item label="发货代理姓名" :label-width="formLabelWidth">
          <el-input v-model="form.fanent_name" autocomplete="off" clearable />
        </el-form-item>
        <el-form-item label="发货代理电话" :label-width="formLabelWidth">
          <el-input v-model="form.fanent_phone" autocomplete="off" clearable />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="show = false">取 消</el-button>
        <el-button type="primary" @click="submit">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
      form: {
        order_num: '',
        anent_name: '',
        anent_phone: '',
        fanent_name: '',
        fanent_phone: ''
      },
      formLabelWidth: '120px'
    }
  },
  methods: {
    submit() {
      this.$emit('search', this.form)
      this.show = false
    }
  }

}
</script>

<style lang="sass" scoped>

</style>
